package com.lottery.utils;

import com.lottery.service.pc28.robotService.RobotUserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class PlayWayThread extends Thread { // implements Runnable {

	private String nextTime;
	private String nextExpect;
	private int lotteyType; // 彩票类型

	private final Logger logger = LoggerFactory.getLogger(this.getClass());

	public String getNextExpect() {
		return nextExpect;
	}

	public void setNextExpect(String nextExpect) {
		this.nextExpect = nextExpect;
	}

	public String getNextTime() {
		return nextTime;
	}

	public void setNextTime(String nextTime) {
		this.nextTime = nextTime;
	}

	public int getLotteyType() {
		return lotteyType;
	}

	public void setLotteyType(int lotteyType) {
		this.lotteyType = lotteyType;
	}

	@Override
	public void run() {
		// TODO Auto-generated method stub
		logger.info("**********robot start betting *****************************");
		RobotUserService robotUserService = new RobotUserService();
		robotUserService.playBetWay(nextTime, nextExpect, lotteyType);
	}

}
